// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#pragma once

// Change this value to use different versions
#define WINVER 0x0420

#define _CRT_SECURE_NO_DEPRECATE	1

#include <atlbase.h>
#include <atlapp.h>

extern CAppModule _Module;

#include <atlwin.h>

#include <atlframe.h>
#include <atlctrls.h>
#include <atldlgs.h>

// for ATL::CString
#include <atlstr.h>

// for WTL::CString
//#include <atlmisc.h>

#define APP_NAME	TEXT("GemTerm")


// Control.cpp
BOOL DisplayTerminalWindow(HANDLE hCommPort, TCHAR *szWindowTitle);
BOOL TestDevice(TCHAR *szDeviceName, DWORD dwDesiredAccess = (GENERIC_READ|GENERIC_WRITE), DWORD dwShareMode = 0 /* NO SHARE */);
BOOL OpenDevice(TCHAR *szDeviceName, HANDLE &hDevice, DWORD dwDesiredAccess = (GENERIC_READ|GENERIC_WRITE), DWORD dwShareMode = 0 /* NO SHARE */);

// Modem.cpp
extern DCB DefaultDCB;
BOOL InitCommConfig();
BOOL SetupComm(HANDLE &hDevice);
